<?php
/**
 * Tell WordPress to run tat_setup() when the 'after_setup_theme' hook is run.
 */
add_action( 'after_setup_theme', 'tat_setup' );

if ( ! function_exists( 'tat_setup' ) ):
function tat_setup() {
	if ( function_exists( 'add_theme_support' ) ) {
		add_theme_support( 'menus' );
	}
	
	//register_nav_menu( 'primary', 'Global navigation menu' );
	register_nav_menus( array (
	'primary' => __( 'Global navigation menu', 'tat' )
	) );
	
	add_theme_support( 'post-thumbnails' );
}

add_action( 'widgets_init', 'tat_widgets_init' );

function tat_widgets_init() {

if (function_exists('register_sidebar')) {
     register_sidebar(array(
      'name' => 'Sidebar Widgets',
      'id'   => 'sidebar-widgets',
      'description'   => 'Widget Area',
      'before_widget' => '<div id="multi_language">',
      'after_widget'  => '</div>',
      'before_title'  => '<h2>',
      'after_title'   => '</h2>'
     ));
    }

}

endif; // tat_setup